home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-12-08 | 36.3 KB | 1,133 lines | [TEXT/R*ch] |
- C.S.M.P. Digest Mon, 29 Jun 92 Volume 1 : Issue 126
-
- Today's Topics:
-
- TCL and Popup Menus
- Emacs v. MPW shell (was Re: Think C vs. MPW)
- Quicktime Question (Standard Compression Dialog)
- TCL Depository (was TCL and Popup Menus)
- How to tell is in color or gray
- Comm Toolbox / THINK C Strangeness
- Finding the System Folder
- Process Manager & Hiding...
- MPW Software for sale
- How to use XTND in programs?
- How to get KeyDown event without WaitNextEvent
- HELP: How do I tell the finder I have changed a name??
- NEEDED: 2 dimensional fast fourier transform
- Grep on Mac
-
-
-
- -------------------------------------------------------
-
- From: gregt@function.mps.ohio-state.edu (Gregory M Ferrar)
- Subject: TCL and Popup Menus
- Organization: Department of Mathematics, The Ohio State University
- Date: Wed, 27 May 1992 04:32:40 GMT
-
- I've been using THINK C for a while now, but I'm just now getting into the
- Class Library. In my normal C programming, I make extensive use of popup
- menus. However, I don't see a CPopupMenu, or any obvious way of using the
- existing menu support to make popups. Am I missing something obvious? Is
- there a CPopupMenu somewhere out there? If not, would anyone want one if I
- wrote it?
-
- -Greg Ferrar (gregt@function.mps.ohio-state.edu)
-
- +++++++++++++++++++++++++++
-
- From: gregt@function.mps.ohio-state.edu (Gregory M Ferrar)
- Organization: Department of Mathematics, The Ohio State University
- Date: Wed, 27 May 1992 17:20:24 GMT
-
- |> I've been using THINK C for a while now, but I'm just now getting into the
- |> Class Library. In my normal C programming, I make extensive use of popup
- |> menus. However, I don't see a CPopupMenu, or any obvious way of using the
- |> existing menu support to make popups. Am I missing something obvious? Is
- |> there a CPopupMenu somewhere out there? If not, would anyone want one if I
- |> wrote it?
-
- Thank you, all who responded to my post above. CPopupPane was right under my
- nose, in the TCL Folder! The confusing thing is that it is not mentioned
- anywhere in the OOP manual. The subclasses of CControl are listed as
- CScrollBar and CButton (which in turn has subclasses CCheckBox and
- CRadioControl). Now I can understand not documenting classes like CStaticText,
- which is supplied for compatibility only, but something as useful as CPopupPane
- should really be findable without doing a Finder search! What's up here?
-
- -Greg Ferrar (gregt@function.mps.ohio-state.edu)
-
- ---------------------------
-
- From: cory@enigami.mv.com (Cory Kempf)
- Subject: Emacs v. MPW shell (was Re: Think C vs. MPW)
- Date: 27 May 92 03:31:05 GMT
- Organization: EnigamI, Inc., Nashua, NH
-
-
- In article <25175@goofy.Apple.COM> (comp.sys.mac.programmer), ksand@apple.com (Kent Sandvik) writes:
- >In article <1992May16.232022.7679@verity.com>, anders@verity.com (Anders
- >Wallgren) writes:
- >> I agree - the _only_ reason that I still prefer Unix to MPW is simple
- >> - GNU Emacs. It is by far the most useful tool I use.
- >
- >I'm curious, if Apple would make a new development environment including
- >new editors, would GNU key-bindings be something people would ask for?
- >I guess most of you know of Alpha (the Emacs style MacOS editor).
-
- Actually, it is not the key bindings that I miss about emacs, but
- the modes. Especially the [electric | eclectic] [C | C++] modes.
-
- I tried to program them into MPW a while back using the SetKey function,
- but it was just too limited. For example, in one of those modes,
- if I begin a line with:
-
- #in
-
- emacs would give me:
-
- #include "|"
-
- (the | is the insertion point). This saves a LOT of typing. It did
- several other things to save my poor wrists as well, and I could customize
- its auto indent based on how *I* liked to view my code.
-
- All of this is impossible to impliment from within MPW.
-
- Another very usefult feature of emacs is the ability to compile common
- scripts. I would really love to be able to compile my startup scripts.
- With the frequency that I have to reboot, that alone could save me
- probably 30 minutes / day.
-
- +C
-
-
-
- - -------------------------------------------------------------
- Cory Kempf EnigamI, Inc.
- cory@enigami.mv.com ...!decvax!enigami!cory
- Microsoft Free and Proud Of It!...
- ...Microsoft Products: Just Say no.
-
- +++++++++++++++++++++++++++
-
- From: ksand@apple.com (Kent Sandvik)
- Date: 28 May 92 01:07:14 GMT
- Organization: MacDTS Mongols
-
- In article <0105011F.4gr58q@dragon.enigami.mv.com>, cory@enigami.mv.com (Cory
- Kempf) writes:
- >> I tried to program them into MPW a while back using the SetKey function,
- > but it was just too limited. For example, in one of those modes,
- > if I begin a line with:
- > #in
-
- > emacs would give me:
- >
- > #include "|"
-
- > (the | is the insertion point). This saves a LOT of typing. It did
- > several other things to save my poor wrists as well, and I could customize
- > its auto indent based on how *I* liked to view my code.
-
- True, I like macros as well, and Object Master actually provides something
- similar.
-
- > Another very usefult feature of emacs is the ability to compile common
- > scripts. I would really love to be able to compile my startup scripts.
- > With the frequency that I have to reboot, that alone could save me
- > probably 30 minutes / day.
-
- True again, the only way to speed up things in MPW today is to convert scripts
- to tools, something which I support with scripts which are used
- over-and-over-and-over-and..
- - --
- Cheers, Kent
-
-
-
- ---------------------------
-
- Organization: Johannes Kepler University Linz - Computing Center
- Date: Wednesday, 27 May 1992 09:06:34 CDT
- From: Norbert Mueller <K360171@ALIJKU11.BITNET>
- Subject: Quicktime Question (Standard Compression Dialog)
-
- Hello,
- I have been looking for a documentation of the StandardCompression
- Utilities (Those QuickTime routines starting with SC...) that are
- used in some sample code onthe QT CD-ROM. It seems it is not in the
- docs on the CD ROM. Also there is no statement if it is legal to use
- the resources in the sample projects (THINK C). Anybody more informed
- than I am ?
-
- Thanks
- N. Mueller (Inst. of Chemistry, Johannes Kepler Univ., Linz, Austria)
-
- +++++++++++++++++++++++++++
-
- From: ivanski@world.std.com (Ivan M CaveroBelaunde)
- Organization: The World Public Access UNIX, Brookline, MA
- Date: Wed, 27 May 1992 17:37:59 GMT
-
- Norbert Mueller <K360171@ALIJKU11.BITNET> writes:
-
- >Hello,
- >I have been looking for a documentation of the StandardCompression
- >Utilities (Those QuickTime routines starting with SC...) that are
- >used in some sample code onthe QT CD-ROM. It seems it is not in the
- >docs on the CD ROM. Also there is no statement if it is legal to use
- >the resources in the sample projects (THINK C). Anybody more informed
- >than I am ?
-
- The Standard Compression component is documented in an Inside Mac Viewer
- file called "StdCompression" in the same folder where the std compression
- .h, sample code, and resource files sit on the QT 1.0 Dev CD.
-
- My understanding is that this component will be rolled into QuickTime itself
- in the future. The glue code checks if there is already a 'scdi' component
- registered with the system, and if there isn't, it registers and calls the
- one in the Application. You probably are free to use it in noncommercial
- programs, but you might need to license it (as part of QuickTime) for
- commercial distribution (I think Apple charges $50 a year or so for all of QT).
- You should probably contact them.
-
- Hope this helps,
-
- - -Ivanski
- - ---
- Ivan Cavero Belaunde (ivanski@world.std.com)
- DiVA Corporation
-
- "A tu escuela llegue, sin entender por que llegaba,
- En tus salones encuentro, mil caminos y encrucijadas,
- Y aprendo mucho ... Y no aprendo na'a ...
- !Maestra vida, camara', te da, te quita, te quita y te da..."
- -Ruben Blades, "Maestra Vida"
-
-
- ---------------------------
-
- From: jstevens@crick.ssctr.bcm.tmc.edu (Jason Philip Stevens)
- Subject: TCL Depository (was TCL and Popup Menus)
- Date: 27 May 1992 15:06:53 GMT
- Organization: Baylor College of Medicine, Houston, Tx
-
-
- In article <1992May27.043240.11138@zaphod.mps.ohio-state.edu>, gregt@function.mps.ohio-state.edu (Gregory M Ferrar) writes:
- |> I've been using THINK C for a while now, but I'm just now getting into the
- |> Class Library. In my normal C programming, I make extensive use of popup
- |> menus. However, I don't see a CPopupMenu, or any obvious way of using the
- |> existing menu support to make popups. Am I missing something obvious? Is
- |> there a CPopupMenu somewhere out there? If not, would anyone want one if I
- |> wrote it?
-
- There must be a "central" depository for TCL classes like this; if not there
- should be, I bet we could all save ourselves a lot of work by browsing through
- stuff that others have written...
-
- Anyone know of such a place or volunteer to set one up?
-
- - -jps
- - --
- Jason Stevens Internet: jstevens@bcm.tmc.edu
- Network User Services Voice: (713) 798-7370
- Baylor College of Medicine Opinions expressed are mine alone.
-
-
- +++++++++++++++++++++++++++
-
- From: medwards@phoenix.Princeton.EDU (Michael Kenneth Edwards)
- Date: 27 May 92 16:11:08 GMT
- Organization: Princeton University
-
-
- The official Think C ftp site is ics.uci.edu, directory /mac/think-c.
- Symantec and others (?) distribute sample code and goodies here. I don't
- know what the upload policy is. However, may I suggest that interested
- parties join the tcl-talk mailing list? The subscription address is
- tcl-talk-request@brown.edu. There is an associated ftp site, ftp.brown.edu,
- where digests and contributed classes are archived. I know there's a set
- of popup tear-off menu support classes there -- I contributed them. (There
- are some distribution restrictions, pending polishing, since it's still at
- the beta stage.) The dialog classes shipped with TCL 1.1.x also include
- a popup menu class. I haven't played with it -- I wrote mine before TCL 1.1
- came out, and it handles rather more than just text menus. If you want
- the system-7-standard behavior, though, with the little arrow and whatnot,
- check out Symantec's class. Mine was written for tool palettes and behaves
- differently.
-
- - - "Kenny Bob"
- (medwards@astro.princeton.edu)
-
- +++++++++++++++++++++++++++
-
- From: molla@paone.uucp (Levent Mollamustafaoglu)
- Date: 27 May 92 16:21:51 GMT
- Organization: Aiken Computation Lab, Harvard University
-
- jstevens@crick.ssctr.bcm.tmc.edu (Jason Philip Stevens) writes:
- >
- >gregt@function.mps.ohio-state.edu (Gregory M Ferrar) writes:
-
- >There must be a "central" depository for TCL classes like this; if not there
- >should be, I bet we could all save ourselves a lot of work by browsing through
- >stuff that others have written...
- >
- >Anyone know of such a place or volunteer to set one up?
- >
-
- Actually, there is a TCL list, which you can join by sending a message to
- tcl-request@brown.edu. The list accepts articles at tcl-talk@brown.edu and
- it also has an ftp site at ftp.brown.edu, in directory /pub/tcl. You can
- ask how to submit classes by a message to tcl-request@brown.edu. As far as
- I remember, there was something done on pop-up menus.
-
-
- ===========================================================================
- Dr. Levent Mollamustafaoglu Harvard University
- molla@paone.harvard.edu molla@metatron.harvard.edu
- ===========================================================================
-
- ---------------------------
-
- From: wolf@piquet.cipl.uiowa.edu (Michael J. Wolf)
- Subject: How to tell is in color or gray
- Date: 27 May 92 15:47:04 GMT
- Organization: Cardiovascular Image Processing Lab, U of Iowa
-
- How can one tell if I am in a world of grays and not colors?
-
- I don't recall anything for this, is there a Gestalt selector I am
- missing? And how does one check this using sysenviron? I must
- use sysenviron in one project and have gestalt glue code for
- the other.
-
- I need to know if I should load an 8 bit color or gray clut.
-
- All help appreciated.
-
- MJW
-
-
-
- +++++++++++++++++++++++++++
-
- From: buckeye@spf.trw.com (John Wallace)
- Date: 28 May 92 21:39:25 GMT
- Organization: TRW Data Systems Center, Redondo Beach, CA
-
- In article <12805@ns-mx.uiowa.edu> wolf@piquet.cipl.uiowa.edu (Michael J. Wolf) writes:
- >How can one tell if I am in a world of grays and not colors?
- >
- >I don't recall anything for this, is there a Gestalt selector I am
- >missing? And how does one check this using sysenviron? I must
- >use sysenviron in one project and have gestalt glue code for
- >the other.
- >
- >I need to know if I should load an 8 bit color or gray clut.
- >
- >All help appreciated.
- >
- >MJW
- >
- >
-
- Check the gdFlags for the GDevice in InsideMac V-131.
- If bit 0 = 0, then you are in grayscale (IM says mono, but
- it really means grayscale from what I've seen), and
- if bit 0 = 1, then you are in color.
-
- Cheers!
- John
- - ----
- John Wallace buckeye@spf.trw.com
-
- ---------------------------
-
- From: edw@caligula.cts.com (Ed Watkeys)
- Subject: Comm Toolbox / THINK C Strangeness
- Date: Wed, 27 May 92 14:19:48 EDT
- Organization: Distant Software
-
- Okay, when I run this code, THINK C tells me that gConnection is equal to
- 0x00000000. But it won't execute ExitToShell! Is this incredible stupidity
- on my part or something going wrong? (I'm assuming the former for now...)
-
- procID = CMGetProcID("\pAppleTalk ADSP Tool");
- gConnection = CMNew(procID,cmQuiet+cmNoMenus,sizes,666L,666L);
- if (gConnection == NULL) {
- ExitToShell;
- }
-
- Just as an aside, this code was working fine until I changed *something* (which
- I can't remember).
-
- Thanks,
- Ed
-
- - --
- Ed Watkeys, Sys Admin. "...The errors of great men are more venerable
- Distant Software because they are more fruitful than the truths
- edw@caligula.cts.com of little men..." -- Friedrich Nietzsche
-
- +++++++++++++++++++++++++++
-
- From: edw@caligula.cts.com (Ed Watkeys)
- Date: Wed, 27 May 92 15:51:54 EDT
- Organization: Distant Software
-
-
- In article <01050133.4iio42@caligula.cts.com> (comp.sys.mac.programmer), edw@caligula.cts.com (Ed Watkeys) writes:
-
- I was correct: I am a moron. This is what I get for switching between C and
- Pascal constantly.
-
- > procID = CMGetProcID("\pAppleTalk ADSP Tool");
- > gConnection = CMNew(procID,cmQuiet+cmNoMenus,sizes,666L,666L);
- > if (gConnection == NULL) {
- > ExitToShell;
- ^--- should have () here.
- > }
- >
- Ed
-
- - --
- Ed Watkeys, Sys Admin. "...The errors of great men are more venerable
- Distant Software because they are more fruitful than the truths
- edw@caligula.cts.com of little men..." -- Friedrich Nietzsche
-
- +++++++++++++++++++++++++++
-
- From: russotto@eng.umd.edu (Matthew T. Russotto)
- Date: Thu, 28 May 92 19:33:55 GMT
- Organization: College of Engineering, University of Maryland, College Park
-
- In article <01050133.4iio42@caligula.cts.com> edw@caligula.cts.com (Ed Watkeys) writes:
- >Okay, when I run this code, THINK C tells me that gConnection is equal to
- >0x00000000. But it won't execute ExitToShell! Is this incredible stupidity
- >on my part or something going wrong? (I'm assuming the former for now...)
- >
- > procID = CMGetProcID("\pAppleTalk ADSP Tool");
- > gConnection = CMNew(procID,cmQuiet+cmNoMenus,sizes,666L,666L);
- > if (gConnection == NULL) {
- > ExitToShell;
- > }
-
- It may not exit to shell, but it might just put $A9F4 in the low word
- of D0.
-
- You forgot the parentheses: ExitToShell()
-
-
-
- - --
- Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu
- Some news readers expect "Disclaimer:" here.
- Just say NO to police searches and seizures. Make them use force.
- (not responsible for bodily harm resulting from following above advice)
-
- ---------------------------
-
- From: kamprath@caen.engin.umich.edu (Michael F. Kamprath)
- Subject: Finding the System Folder
- Date: Wed, 27 May 92 22:06:57 EDT
- Organization: The University of Michigan, Ann Arbor
-
- How would my program find the system folder in order to save a preference file
- there? Also, how would it tell the difference between a system 6 & 7 folder,
- so that it would save the preference file to the preference folder in system 7?
- Basically, I want the finding of the preference file to be transparent to the
- user, and if it can't find one, a default pref. file would be created there.
-
- I am using THINK C 4.0.5.
-
- Thanks for any help.
-
- Michael Kamprath
- kamprath@caen.engin.umich.edu
-
-
- +++++++++++++++++++++++++++
-
- From: James.W.Osborne@dartmouth.edu (James W. Osborne)
- Date: 29 May 92 01:30:58 GMT
- Organization: Dartmouth College, Hanover, NH
-
- In article <3m8+H4#@engin.umich.edu>
- kamprath@caen.engin.umich.edu (Michael F. Kamprath) writes:
-
- > How would my program find the system folder in order to save a preference file
- > there? Also, how would it tell the difference between a system 6 & 7 folder,
- > so that it would save the preference file to the preference folder in system 7?
- > Basically, I want the finding of the preference file to be transparent to the
- > user, and if it can't find one, a default pref. file would be created there.
- >
- > I am using THINK C 4.0.5.
- >
- > Thanks for any help.
- >
- > Michael Kamprath
- > kamprath@caen.engin.umich.edu
-
-
- Following is some sample code that is a class based on CResFile. It
- implements a preferences file for TCL under System 6 or 7. I make no
- claims other than it works for me, and no guarantees except that you'll
- have to modify it to work for your individual needs.
-
- ####### CPrefResFile.h ###########
- #include <CResFile.h>
-
- class CPrefResFile : public CResFile {
-
- public:
- void IPrefResFile(void);
- void Dispose(void);
-
- void Open(SignedByte permission);
- OSErr GetPrefFile();
- OSErr MakeNewPrefFile(void);
- };
-
-
- ######## CPrefResFile.c ##############
- #include <OSUtils.h>
- #include <TBUtilities.h>
- #include <stdio.h>
-
- #include "CPrefResFile.h"
-
- #define PREF_FILE_NAME "\pYour pref file name"
-
- extern CTalkApp *gApplication;
-
- void CPrefResFile::IPrefResFile()
- {
- CResFile::IResFile();
- }
-
- void CPrefResFile::Open(SignedByte permission)
- {
- Boolean wasLocked;
-
- ASSERT( IsOpen() == FALSE);
-
- wasLocked = Lock( TRUE);
- refNum = HOpenResFile(volNum, dirID, name, permission);
- Lock( wasLocked);
-
- if (refNum == -1)
- refNum = 0;
- }
-
- OSErr CPrefResFile::GetPrefFile()
- {
- Str63 temp;
- OSErr err = 0;
- short lVolNum;
- long lDirID;
-
- SysEnvRec theSysEnv;
-
- if (gSystem.systemVersion < 0x0700) {
- // Find the System Folder
- err = SysEnvirons (1, &theSysEnv);
- lVolNum = theSysEnv.sysVRefNum;
-
- Specify(temp, lVolNum);
- }
- else {
- err = FindFolder(kOnSystemDisk, kPreferencesFolderType,
- kDontCreateFolder,
- &lVolNum, &lDirID);
- if (err != noErr)
- ErrorDialog("Failure in opening preferences file:", err);
-
- // Call the Specify
- SpecifyHFS(temp, lVolNum, lDirID);
- }
-
- // Now try to open it. This method is overridden because we don't
- // want the error dialog
- if (!IsOpen())
- Open(fsRdWrPerm);
-
- // If there was no file, make a new one
- if (refNum == 0)
- MakeNewPrefFile();
-
- return noErr;
- }
-
- void CPrefResFile::Dispose()
- {
- inherited::Dispose();
- }
-
-
- OSErr CPrefResFile::MakeNewPrefFile()
- {
- Handle prefsHandle;
- FInfo finderinfo;
- OSErr err;
-
- CreateNew('CREATOR_ID', 'PREF');
- Open(fsRdWrPerm);
- prefsHandle = NewHandle(sizeof(struct Preferences));
- FailMemError();
-
- HLock(prefsHandle);
- BlockMove(gApplication->thePrefs, *prefsHandle, sizeof(struct
- Preferences));
- ReplaceResource(prefsHandle, 'PREF', rStdPrefs, "\pStandard Prefs",
- refNum, 0);
- Update();
- HUnlock(prefsHandle);
- }
-
-
-
-
- Here's some sample code on how I call it from my app's initialization
- routine...
-
-
- // *** PREFERENCES
- thePrefs = (struct Preferences *) NewPtr(sizeof(struct Preferences));
- FailMemError();
-
- thePrefs->in_conn = kICWait;
- thePrefs->sess_man = kSMConditional;
- thePrefs->numShortcuts = 0;
- strncpy(thePrefs->name, shortName, NAME_SIZE);
-
- // Create the pref file object
- prefFile = new CPrefResFile;
- prefFile->IPrefResFile();
- // Get the prefRef
- prefFile->GetPrefFile();
- prefFile->MakeCurrent();
-
- // Now get the Preferences from the file
- prefsHandle = GetPrefRes('PREF', rStdPrefs); // *** Sorry, I can't
- give you the code to GetPrefRes. It's not mine to give, but it
- basically does a Get1Resource with wrapper...
- if (!prefsHandle) {
- ErrorDialog("Problem with the preferences file.", 0);
- return FALSE;
- }
- else {
- BlockMove(*prefsHandle, thePrefs, (Size) sizeof(struct Preferences));
- // ForgetResource(prefsHandle);
- // FailResError();
- }
- prefFile->Close();
-
-
-
-
- I hope this can help you out. Perhaps if someone were to generalize it
- more, it could go up on the TCL ftp site. If someone does decide to do
- that, please give credit where it is due. Thanks.
-
-
- - -Jamie Osborne
- jwo@dartmouth.edu
-
- ---------------------------
-
- From: rsherman@mthvax.cs.miami.edu (Roby Sherman)
- Subject: Process Manager & Hiding...
- Date: 28 May 92 14:33:56 GMT
- Organization: The Tao of Programming
-
- I must be going blind... I've been searching around IM vol 6 for the
- command used to hide a process, but have found nothing. Is this
- information in IM Or must I refer to some external source? If anyone has
- info on how to do this, please leave me e-mail or post it to the net.
-
-
- thanks.
-
- Roby
- - --
- rsherman@mthvax.cs.miami.edu Roby Sherman
-
- +++++++++++++++++++++++++++
-
- From: nerm@apple.com (Dean Yu)
- Date: 28 May 92 23:36:57 GMT
- Organization: Apple Computer, Inc.
-
- In article <102r0kINNco2@mthvax.cs.miami.edu>, rsherman@mthvax.cs.miami.edu (Roby Sherman) writes:
- >
- > I must be going blind... I've been searching around IM vol 6 for the
- > command used to hide a process, but have found nothing. Is this
- > information in IM Or must I refer to some external source? If anyone has
- > info on how to do this, please leave me e-mail or post it to the net.
- >
- >
- > thanks.
- >
- > Roby
- > --
-
- Hiding a process's layer is not a public interface.
-
- -- Dean Yu
- Blue Meanie, Negative Ethnic Role Model
- Apple Computer, Inc.
- blah blah blah blah blah
-
-
- ---------------------------
-
- From: neal@farallon.com (Neal Trautman)
- Subject: MPW Software for sale
- Date: 27 Apr 92 14:58:28 GMT
- Organization: Farallon Computing, Inc.
-
-
- Macintosh Programming Software and Manuals for sale
-
- Macintosh Programmer's Workshop (MPW) v3.1
- MPW Assembler v3.1
- MPW Object Pascal v3.1
- MPW C v3.1
- MPW C++ v3.1
- MacApp v2.0.1
- SADE v1.1
- MacsBug v6.1
- ResEdit v1.2
- DTS Tech Notes
- Inside Macintosh volumes 1-5
-
- All software comes with manuals.
- I will consider all offers.
-
- Contact:
- Neal Trautman
- neal@farallon.com
- or call (913)832-1723 after 6PM central time.
-
- +++++++++++++++++++++++++++
-
- From: neal@farallon.com (Neal Trautman)
- Date: 27 May 92 13:19:44 GMT
- Organization: Farallon Computing, Inc.
-
-
- Macintosh Programming Software and Manuals for sale
-
- Macintosh Programmer's Workshop (MPW) v3.1
- MPW Assembler v3.1
- MPW Object Pascal v3.1
- MPW C v3.1
- SADE v1.1
- MacsBug v6.1
- ResEdit v1.2
-
- All software is in excellent condition and
- comes with manuals. I will consider all offers.
-
- Contact:
- Neal Trautman
- neal@farallon.com
- or call (913)832-1723 after 6PM central time.
-
- ---------------------------
-
- From: karl@sparcom.com (Karl J. Smith)
- Subject: How to use XTND in programs?
- Date: 10 May 92 02:58:46 GMT
- Organization: Sparcom Corp., Corvallis/Tigard, Oregon
-
- I'm looking into adding XTND support to an application I've written, and
- need to know where to start. Whom at Claris should I contact? How much
- does the license cost? How much code does it take to support XTND? Is there
- an easy way to add XTND support to MacApp programs? Any answers would
- be appreciated.
-
- Karl Smith
- karl@sparcom.com
-
- +++++++++++++++++++++++++++
-
- From: drc@claris.com (Dennis Cohen)
- Date: 11 May 92 13:26:00 GMT
- Organization: Claris Corporation, Santa Clara CA
-
- karl@sparcom.com (Karl J. Smith) writes:
-
- >I'm looking into adding XTND support to an application I've written, and
- >need to know where to start. Whom at Claris should I contact? How much
- >does the license cost? How much code does it take to support XTND? Is there
- >an easy way to add XTND support to MacApp programs? Any answers would
- >be appreciated.
-
- You should contact APDA. Apple acquired the rights to XTND from Claris
- last year and started shipping the XTND Developer Kit in August. The kit
- is $30 and includes the license. It really doesn't take much code to
- support XTND, sample programs supporting XTND are included in the package
- in both C and Pascal (both MPW and THINK). I am not aware of anyone
- providing an XTND Class for MacApp, but it is pretty easy to add XTND
- support to a MacApp-based program (just function calls, after all). Tom
- Chavez was interested in adding XTND support into MacApp last year, but
- I don't know whether anything ever came of it.
-
- - --Dennis
-
- - --
- Dennis Cohen
- Claris Corp.
- ****************************************************
- Disclaimer: Any opinions expressed above are _MINE_!
-
- +++++++++++++++++++++++++++
-
- From: nilesinc@well.sf.ca.us (Avi Rappoport)
- Date: 18 May 92 23:36:33 GMT
- Organization: Whole Earth 'Lectronic Link
-
- In <544@sparcom.sparcom.com> karl@sparcom.com (Karl J. Smith) writes:
-
- >I'm looking into adding XTND support to an application I've written, and
- >need to know where to start. Whom at Claris should I contact? How much
- >does the license cost? How much code does it take to support XTND? Is there
- >an easy way to add XTND support to MacApp programs? Any answers would
- >be appreciated.
-
- I'm not sure where XTND is going, and would recommend that you hold off
- for the moment. For gamblers, the XTND 1.3 package from APDA will probably
- be pretty compatible with any (definatively _unannounced_) future versions.
-
- Avi.
-
- - --
- - -- Ask me about EndNote and EndNote Plus Bibliography Makers --
- Avi Rappoport 2000 Hearst, Berkeley, CA 94709
- nilesinc@well.sf.ca.us, 510-649-8176
- Niles.Assoc on AppleLink fax: 510-649-8179
-
- +++++++++++++++++++++++++++
-
- From: chandhok+@cs.cmu.edu (Ravinder Chandhok)
- Date: Wed, 27 May 92 16:01:00 GMT
- Organization: School of Computer Science, Carnegie Mellon
-
- In article 39429 drc@claris.com writes:
- >in both C and Pascal (both MPW and THINK). I am not aware of anyone
- >providing an XTND Class for MacApp, but it is pretty easy to add XTND
- >support to a MacApp-based program (just function calls, after all). Tom
- >Chavez was interested in adding XTND support into MacApp last year, but
- >I don't know whether anything ever came of it.
-
- I wrote an XTND package for MacApp, which has been mostly used in 2.0, but
- also had the headers ported to 3.0/C++. It provides an easy way to read in
- both text (into TEViews or chains of TEViews) and pictures via XTND. We use
- it in the PREP Editor.
-
- I think Tom Chavez knows about it (I certainly tried to tell him) but I have
- never had any conversation with him about it.
-
- Rob
- - --
- Ravinder (Rob) Chandhok Internet : chandhok+@cs.cmu.edu
- Carnegie Mellon University AppleLink: A14
-
-
- ---------------------------
-
- From: nyang@Bonnie.ICS.UCI.EDU
- Subject: How to get KeyDown event without WaitNextEvent
- Date: 19 May 92 20:59:33 GMT
-
-
- Someone please help me with this...
-
- Can I get a Keydown event without using WaitNextEvent function? The
- reason why I want to do that is becasue my program clears the whole screen, and
- when I call WaitNextEvent to get user keyboard input, the menu bar gets redrawn.
- But, I don't want to redraw the menu bar! If this can't be done, can someone
- tell me how to tell WaitNextEvent not to redraw the menu bar?
-
- Please don't flame me if this is a stupid question. Thank you very much
- for any help in advance.
-
- Nick Yang nyang@bonnie.ics.uci.edu
-
- +++++++++++++++++++++++++++
-
- From: mxmora@unix.SRI.COM (Matt Mora)
- Date: 26 May 92 17:52:48 GMT
- Organization: SRI International, Menlo Park, California
-
- In article <9205191359.aa25006@Bonnie.ics.uci.edu> nyang@Bonnie.ICS.UCI.EDU writes:
- >
- >Someone please help me with this...
- >
- > Can I get a Keydown event without using WaitNextEvent function? The
-
- Not really, but you can look at the keymap by using the
- GetKeys(var k:KeyMap); call . This will return in the kemap array flags
- telling you which buttons are being held down.
-
- >reason why I want to do that is because my program clears the whole screen,and
- >when I call WaitNextEvent to get user keyboard input, the menu bar gets
- >redrawn.
-
- Are you writting a game? You will probably need to hide the menu bar. Or as
- Tog says "change it to the same color as the background."
-
- > Please don't flame me if this is a stupid question. Thank you very much
- >for any help in advance.
-
- The only stupid question is the one not asked. :-)
-
-
- Matt
-
-
-
-
-
- - --
- ___________________________________________________________
- Matthew Mora | my Mac Matt_Mora@sri.com
- SRI International | my unix mxmora@unix.sri.com
- ___________________________________________________________
-
- ---------------------------
-
- From: kevin@crash.cts.com (Kevin Hill)
- Subject: HELP: How do I tell the finder I have changed a name??
- Organization: Crash TimeSharing, El Cajon, CA
- Date: Wed, 20 May 1992 06:48:58 GMT
-
- I am using a program that changes the name of files.. I have noticed that if
- I try to delete a file that has had its name changed, and the window containing
- that file was open during the change, I get a file not found error. However,
- if I then close the window and the open it again, it deletes it no problem..
- Is there a special message that I want to send to the finder whenever I
- try to change a file that will update the finders name lists?
-
- -Kevin
-
-
- +++++++++++++++++++++++++++
-
- From: jpugh@apple.com (Jon Pugh)
- Date: 23 May 92 05:34:15 GMT
- Organization: Apple Computer, Inc.
-
- In article <1992May20.064858.9915@crash.cts.com>, kevin@crash.cts.com (Kevin Hill) writes:
- >
- >
- > I am using a program that changes the name of files.. I have noticed that if
- > I try to delete a file that has had its name changed, and the window containing
- > that file was open during the change, I get a file not found error. However,
- > if I then close the window and the open it again, it deletes it no problem..
- > Is there a special message that I want to send to the finder whenever I
- > try to change a file that will update the finders name lists?
- >
- > -Kevin
-
- The Finder caches tons o' stuff now. You can get it to flush its cache by
- changing the modification date of the containing folder (i.e. the open
- window). This will make the Finder update the window.
-
- Jon
-
- ---------------------------
-
- From: jafl@cco.caltech.edu (John Lindal)
- Subject: NEEDED: 2 dimensional fast fourier transform
- Organization: California Institute of Technology, Pasadena
- Date: Wed, 20 May 1992 19:14:54 GMT
-
- Does anyone have code that will calculate 2 dimensional fast fourier
- transforms? Code is the best, but perhaps you know where I should post this
- to get more responses or where to look for code.
-
- Thanks in advance. John Lindal
-
- +++++++++++++++++++++++++++
-
- From: walsteyn@fys.ruu.nl (Fred Walsteijn)
- Date: 22 May 92 08:50:18 GMT
- Organization: Physics Department, University of Utrecht, The Netherlands
-
- In <1992May20.191454.12784@cco.caltech.edu> jafl@cco.caltech.edu (John Lindal) writes:
-
- >Does anyone have code that will calculate 2 dimensional fast fourier
- >transforms? Code is the best, but perhaps you know where I should post this
- >to get more responses or where to look for code.
-
- 1. The Numerical Recipes disk(s) contain a 2D FFT (f77, cc, pascal).
- 2. I believe there are also public domain FFT codes (f77 and cc) in netlib.
-
- You may get more responses if you post to "sci.math.num-analysis".
- - -----------------------------------------------------------------------------
- Fred Walsteijn | Internet: walsteyn@fys.ruu.nl
- Institute for Marine and Atmospheric Research | FAX: 31-30-543163
- Utrecht University, The Netherlands | Phone: 31-30-533169
-
- +++++++++++++++++++++++++++
-
- From: howard@rigel.cs.pdx.edu (howard l. berkey)
- Date: 26 May 92 23:11:56 GMT
- Organization: /etc/organization
-
- In article <1992May22.085018.3772@fys.ruu.nl> walsteyn@fys.ruu.nl (Fred Walsteijn) writes:
- >In <1992May20.191454.12784@cco.caltech.edu> jafl@cco.caltech.edu (John Lindal) writes:
- >
- >>Does anyone have code that will calculate 2 dimensional fast fourier
- >>transforms? Code is the best, but perhaps you know where I should post this
- >>to get more responses or where to look for code.
- >
- >1. The Numerical Recipes disk(s) contain a 2D FFT (f77, cc, pascal).
- >2. I believe there are also public domain FFT codes (f77 and cc) in netlib.
- >
-
- Better yet, write your own! There are many algorithms; I have found these
- sources the most useful:
-
- "Numerical Methods for Engineers", Chapra and Canale, 2nd ed., McGraw Hill
-
- "Algorithms in C", Robert Sedgewick, Addison-Wesley
-
- Also, for more FFT info, read various articles in the ACM journal by Cooley,
- Tukey, and Sande, although this gets pretty thick.
-
- - -Howard
- - -----------------------------------------------------------------------------
- Make mine a '99'! howard@rigel.cs.pdx.edu
- Kick Back For The Rave Alarm
- Howard Berkey, permanent undergrad, soon to get the Hell out of Dodge........
-
- ---------------------------
-
- From: fang@phy.duke.edu (Fang Zhong)
- Subject: Grep on Mac
- Date: 21 May 92 02:04:44 GMT
-
-
- I am looking for an application or a MPW tool which can find
- the documents in one folder that contain a given string.
- Any lead?
- Thanks in advance.
-
- - --
- Fang Zhong 1-919-684-8247
- Duke University Dept. of Physics fang@phy.duke.edu
- Durham, N.C. 27706
-
- +++++++++++++++++++++++++++
-
- From: molla@paone.uucp (Levent Mollamustafaoglu)
- Date: 21 May 92 05:06:09 GMT
- Organization: Aiken Computation Lab, Harvard University
-
- In article <2982@news.duke.edu> fang@phy.duke.edu (Fang Zhong) writes:
- >
- > I am looking for an application or a MPW tool which can find
- >the documents in one folder that contain a given string.
- > Any lead?
-
- Try Rich Siegel's excellent freeware editor BBEdit, which you can
- find at sumex-aim.stanford.edu, under info-mac/app. Maybe you might
- alsolike to use it as an editor, in addition to grep'ping with it. :-)
-
-
- ===========================================================================
- Dr. Levent Mollamustafaoglu Harvard University
- molla@paone.harvard.edu molla@metatron.harvard.edu
- ===========================================================================
-
- Newsgroups :
- ZZSubject: Re: Grep on Mac
- References: <2982@news.duke.edu>
- Sender:
- Followup-To:
- Distribution:
- Organization: Aiken Computation Lab, Harvard University
- Keywords: search documents containing a given string
-
- In article <2982@news.duke.edu> fang@phy.duke.edu (Fang Zhong) writes:
- >
- > I am looking for an application or a MPW tool which can find
- >the documents in one folder that contain a given string.
- > Any lead?
-
- Try Rich Siegel's excellent freeware editor BBEdit, which you can
- find at sumex-aim.stanford.edu, under info-mac/app. Maybe you might
- alsolike to use it as an editor, in addition to grep'ping with it. :-)
-
-
- ===========================================================================
- Dr. Levent Mollamustafaoglu Harvard University
- molla@paone.harvard.edu molla@metatron.harvard.edu
- ===========================================================================
-
- +++++++++++++++++++++++++++
-
- From: curreyr@cs.orst.edu (Robert Currey)
- Date: 21 May 92 20:27:09 GMT
- Organization: Oregon State University
-
- In article <1992May21.050609.4076@das.harvard.edu>, molla@paone.uucp (Levent Mollamustafaoglu) writes:
- >
- > In article <2982@news.duke.edu> fang@phy.duke.edu (Fang Zhong) writes:
- > >
- > > I am looking for an application or a MPW tool which can find
- > >the documents in one folder that contain a given string.
- > > Any lead?
- >
- > Try Rich Siegel's excellent freeware editor BBEdit, which you can
- > find at sumex-aim.stanford.edu, under info-mac/app. Maybe you might
- > alsolike to use it as an editor, in addition to grep'ping with it. :-)
- >
- >
- I use the MPW command string:
-
- search /STRING/ `files -o -f -r -t TEXT "DIR"`
-
- This will find STRING in all text files in the directory DIR.
- If DIR is omitted then the current directory is used. I'm sure
- if you wanted you could emulate the unix grep command by using a
- script that munged the grep parameters into the search commands
- needs.
-
- - -Rob
-
- +++++++++++++++++++++++++++
-
- From: zben@ni.umd.edu (Charles B. Cranston)
- Organization: UM Home for the Terminally Analytical
- Date: Tue, 26 May 1992 21:27:16 GMT
-
- In article <1992May21.202709.8315@CS.ORST.EDU>, curreyr@cs.orst.edu (Robert Currey) writes:
-
- > I use the MPW command string:
- > search /STRING/ `files -o -f -r -t TEXT "DIR"`
-
- Why not use the filename explosion stuff built into the shell?
- I have these lines at the top of my worksheet:
-
- Search -i /PBGetCatInfoSync/ "{CIncludes}"?*.h
- Search -i /SFSaveDisk/ "{PInterfaces}"?*.p
- Search -i /windowkind/ "{AIncludes}"?*.a
-
- Whenever I need to find something in the includes I type it over the
- text between the slashes and execute it. There is actually a single
- symbol that can replace ?* but it is one of the macintosh above-ascii
- symbols and so I cannot quote it here...
-
-
- ---------------------------
-
- End of C.S.M.P. Digest
- **********************
-